// pagesLuxian/pages/dest/index.js
Page({
  data: {
    longitude: null,
    latitude: null
  },
  onLoad(e) {
    if (e.longitude && e.latitude) {
      this.setData({
        longitude: e.longitude,
        latitude: e.latitude
      })
    }
  },
  getMessage(e){
    console.log(e)
    let msg = e.detail.data[0]
    let pages = getCurrentPages();
    let prePage = pages[pages.length - 2];
    prePage.setData({
      to: msg
    })
  }
})